# D\\python_book_resource
import os
d = 'C:\\Users\\Administrator\\Desktop\\python3'
keyword = '勇者挑战'
print('搜索开始')
for root, dirs, files in os.walk(d):
    for file in files:
        if keyword in file:
            path = os.path.join(root, file)
            print(path)
            with open(path, 'r') as fr:
                s = fr.read()
                print(s)